package io.renren.modules.user.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.renren.modules.combat.entity.TFightDictionaryEntity;
import io.renren.modules.generator.entity.TTrainingDictionaryEntity;
import io.renren.modules.user.entity.TPeopleDictionaryEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 人员数据字典
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2019-08-02 10:30:00
 */
@Mapper
public interface TPeopleDictionaryDao extends BaseMapper<TPeopleDictionaryEntity> {

    List<TPeopleDictionaryEntity> listDictionary();

    List<TPeopleDictionaryEntity> listDictionaryPost();

    List<TPeopleDictionaryEntity> listAdministration();

    List<TPeopleDictionaryEntity> listDictionaryTitle();

    List<TPeopleDictionaryEntity> listPostClass();

    TPeopleDictionaryEntity listClass(@Param("name") String name,@Param("type")String type);

    /**
     * 字典类型下拉选择
     */
    List<TPeopleDictionaryEntity> getPeopleSelect();
    List<TTrainingDictionaryEntity> getTrainingSelect();
    List<TFightDictionaryEntity> getFightSelect();

    /**
     * 人员退出类型
     */
    List<TPeopleDictionaryEntity> outType();

}
